package com.itheima.day17.work;


import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.File;
import java.io.IOException;

public class Test {
    //private static final Logger LOGGER=Logger.getLogger(Log4jTest.class);//不推荐使用
    //logback现在市场中有，比slf还好
   // private static final Logger LOGGER= LoggerFactory.getLogger(Log4jTest.class);//slf推荐使用

    public static void main(String[] args) throws IOException {
        //jsoup 日志技术的使用
//        String path = Test.class.getClassLoader().getResource("beans.xml").getPath();
//        Document parse = Jsoup.parse(new File(path), "utf-8");//document底层实现了tostring方法
//        System.out.println(parse); //输出xml文件的内容
        Object student = BeanFactory.getBean("student");
        Object teacher = BeanFactory.getBean("teacher");
        Object dog = BeanFactory.getBean("cat");
        System.out.println(student);
        System.out.println(teacher);
        System.out.println(dog);

    }
}
